﻿using System;

namespace IFactory
{
    class Program
    {
        static void Main(string[] args)
        {
            IFactory kmeansFactory = new KmeansFactory();
            IClustering kmeans = kmeansFactory.createClustering();
            Console.WriteLine(kmeans.calculate());

         
            IFactory dbscanFactory = new DbscanFactory();
            IClustering dbscan = dbscanFactory.createClustering();
            Console.WriteLine(dbscan.calculate());

           
            IFactory hierarchicalFactory = new HierarchyFactory();
            IClustering hierarchical = hierarchicalFactory.createClustering();
            Console.WriteLine(hierarchical.calculate());

            Console.ReadLine();
        }
    }
}
